<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<style type="text/css">
		html,
		body{
			height: 100%;
			background: #FFF;
		}
	</style>
</head>
<body>
	<h1>this is page for A000</h1>
	<button tapmode onclick="closeWgt();">关闭窗口</button>
	<script type="text/javascript" src="./dist/script/ble.js"></script>
	<script type="text/javascript">

       

		apiready = function(){

			ble.init().then(function(ret){
				console.log(JSON.stringify(ret));
			},function(err){
				api.alert({msg:err.msg})
			}).catch(function(err){
				api.alert({msg:err.msg})
			}).then(function(){
				ble.scan();
			})
		    
		}
		    




		function closeWgt(){
			api.closeWidget({
			    id: 'A0000',
			    retData: {
			        name: 'closeWidget'
			    },
			    animation: {
			        type: 'flip',
			        subType: 'from_bottom',
			        duration: 500
			    }
			});
		}
	</script>
</body>
</html>